Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email-addresses

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email-addresses

An email address parser based on rfc5322

  • 3.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
420K
decreased by-27.8%
Maintainers
1
Weekly downloads
 
Created

What is email-addresses?

The email-addresses npm package is a robust tool for parsing, validating, and extracting email addresses from text. It provides a variety of functionalities to handle email addresses in different formats and contexts.

What are email-addresses's main functionalities?

Parsing

This feature allows you to parse a single email address from a string. The parsed object contains detailed information about the email address, such as the local part and the domain.

const emailAddresses = require('email-addresses');
const parsed = emailAddresses.parseOneAddress('test@example.com');
console.log(parsed);

Validation

This feature helps in validating whether a given string is a valid email address. It returns true if the email address is valid, otherwise false.

const emailAddresses = require('email-addresses');
const isValid = emailAddresses.parseOneAddress('test@example.com') !== null;
console.log(isValid);

Extraction

This feature allows you to extract multiple email addresses from a block of text. It returns an array of parsed email address objects.

const emailAddresses = require('email-addresses');
const extracted = emailAddresses.parseAddressList('Contact us at support@example.com or sales@example.com');
console.log(extracted);

Other packages similar to email-addresses

Keywords

FAQs

Package last updated on 24 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc